package com.zmzncs.lmtc.module.shop.service;

import com.zmzncs.lmtc.common.pojo.Rest;
import com.zmzncs.lmtc.module.shop.pojo.shop_order.GoodsBuyForm;
import com.zmzncs.lmtc.module.shop.pojo.shop_order.ShopOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zmzncs.lmtc.module.shop.pojo.shop_order.ShopOrderDTO;
import com.zmzncs.lmtc.module.shop.pojo.shop_order.ShopOrderGoodsDTO;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商户-订单 服务类
 * </p>
 *
 * @author 高博文
 * @since 2021-05-20
 */
@Service
public interface ShopOrderService extends IService<ShopOrder> {

    /**购买商品*/
    Map<String, Object> buyGoods(GoodsBuyForm form);

    /**微信支付回调-购买商品*/
    String buyGoodsCallback(String callbackStr);

    /**
     * 商品退款
     * @param id
     * @return
     */
    Rest refundGoods(Long id);

    /**
     * 去使用商品
     * @param id
     * @return
     */
    String useGoods(Long id);

    /**根据状态 查商户订单信息*/
    List<ShopOrderGoodsDTO> getMyOrderInfoListByStatus(Long customerId,Long status);

}
